package cinema.web;

import cinema.model.Actors;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ActorTest  {
	public static void main(String[] args) {
		// Loading the applicationContext xml.
		ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
		// Instantiating the manager bean
		ActorsManagerImpl manager = (ActorsManagerImpl)ctx.getBean("actorsManager");
		Actors theActor = new Actors();
	 	theActor.setId(2);
	 	theActor.setFname("Coba Coba lah");
	 	theActor.setLname("Intranet lah");
		manager.saveActor(theActor);
	}
}